package pl.project.engineering.data;

import lombok.Data;
import org.apache.tapestry5.beaneditor.Validate;

/**
 *
 * @author ksmolnicki
 */
@Data
public class MailServerConfig {

  @Validate("required")
  private String smtpHost;
  @Validate("required,regexp")
  private String port;
  @Validate("required,regexp")
  private String username;
  @Validate("required")
  private String password;
  @Validate("required")
  private EmailInterval emailInterval;
  @Validate("required,regexp")
  private Double warningTemp = 20.0;
  @Validate("required,regexp")
  private Double warningHumd = 60.0;
}
